#!/bin/bash

CURDIR=$(cd $(dirname "$0"); pwd)

#Level 1: Benchmarks (CFP95, CFP2000, CFP2006, etc...)
for level_one in $CURDIR/*
do
  if [ -d $level_one ]; then
    #Level 2: Benchmark programs
    for level_two in $level_one/*
    do
      if [ -d $level_two ]; then
        if [ -d $level_two/Output ] ; then
          for file in $level_two/Output/*.err
          do            
            mv $file $CURDIR;
          done                  
        fi
      fi      
    done  
  fi  
done



